import {get, post, del, put} from "@/apis/http/request";
import {RetailTeamAddSp} from "@/apis/model/team/RetailTeamAddSpModel";

/**
* 得到列表
* @param params
*/
export const getRetailTeamAddSpList = (params: any) => get("/retailTeamAddSp/list", params)

/**
* 得到分页列表
* @param params
*/
export const retailTeamAddSpPage = (params: any) => post("/retailTeamAddSp/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailTeamAddSpById = (id: number) => del("/retailTeamAddSp/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailTeamAddSp = (param: RetailTeamAddSp) => post("/retailTeamAddSp", param)

/**
* 更新数据
* @param param
*/
export const updateRetailTeamAddSp = (param: RetailTeamAddSp) => put("/retailTeamAddSp", param)